<template>
  <div class="app-container">
    <div class="ProductionDynamic">
      <!-- 头部 -->
      <div class="ProductionDynamicHeader">
        <Find :OriginalFilter="{ static: true }" :formList="formList" @findClicked="findData" />
      </div>

      <div class="flex mt10">
        <el-card shadow="never" :body-style="{ padding: '20px' }">
          <div slot="header" class="f16">
            <span style="font-weight: 600">订单生成动态</span>
          </div>
          <Table :tableHeader="tableHeader" :tableData="tableData" class="mt10" :TableHeight="'240rem'" />
        </el-card>
        <el-card shadow="never" :body-style="{ padding: '20px' }">
          <div slot="header">
            <div>
              <Table :tableHeader="tableHeader1" :tableData="tableData1" :TableHeight="'250rem'" />
            </div>
          </div>
        </el-card>
      </div>
      <el-card shadow="never" :body-style="{ padding: '10px 20px 10px' }">
        <div slot="header">
          <span><!-- card title --></span>
        </div>
        <div class="ProductionDynamicMainCardBottom">
          <div>
            <el-button type="primary" size="default" @click="" class="primaryBth">标注指令已结束</el-button>
            <el-button type="primary" size="default" @click="" class="primaryBth">查询标注结束指令</el-button>
          </div>
          <div style="margin-top: 30px">
            <el-button class="save" type="primary" size="default" @click="">保存</el-button>
            <el-button type="primary" size="default" @click="">打印</el-button>
          </div>
        </div>
      </el-card>
    </div>
  </div>
</template>
<script lang="ts">
import { defineComponent, ref } from 'vue'
import JMessage from '@/utils/JMessage'
export default defineComponent({
  name: 'ProductionDynamicTableL'
})
</script>
<script lang="ts" setup>
import { i18n, Jzhcn } from '@/i18n'
import Find from '@/components/Find/index.vue'
const formList = ref([
  {
    type: 'input',
    inputPlaceholder: '请输入指令',
    inputValue: ''
  },
  {
    type: 'select',
    selectValue: '品牌',
    selectLabel: '',
    selectOptions: [
      {
        optionKey: '1',
        optionValue: '111111',
        optionLabel: 'option1'
      },
      {
        optionKey: '2',
        optionValue: '222222',
        optionLabel: 'option2'
      },
      {
        optionKey: '3',
        optionValue: '333333',
        optionLabel: 'option3'
      }
    ]
  },
  {
    type: 'select',
    selectValue: '季节',
    selectLabel: '',
    selectOptions: [
      {
        optionKey: '1',
        optionValue: '111111',
        optionLabel: 'option1'
      },
      {
        optionKey: '2',
        optionValue: '222222',
        optionLabel: 'option2'
      },
      {
        optionKey: '3',
        optionValue: '333333',
        optionLabel: 'option3'
      }
    ]
  },
  {
    type: 'select',
    selectValue: '楦头',
    selectLabel: '',
    selectOptions: [
      {
        optionKey: '1',
        optionValue: '111111',
        optionLabel: 'option1'
      },
      {
        optionKey: '2',
        optionValue: '222222',
        optionLabel: 'option2'
      },
      {
        optionKey: '3',
        optionValue: '333333',
        optionLabel: 'option3'
      }
    ]
  },
  {
    type: 'select',
    selectValue: '大底',
    selectLabel: '',
    selectOptions: [
      {
        optionKey: '1',
        optionValue: '111111',
        optionLabel: 'option1'
      },
      {
        optionKey: '2',
        optionValue: '222222',
        optionLabel: 'option2'
      },
      {
        optionKey: '3',
        optionValue: '333333',
        optionLabel: 'option3'
      }
    ]
  },
  {
    type: 'date',
    dateLabel: '客户交期',
    dateValue: ''
  },

  {
    type: 'date',
    dateLabel: '成型计划日期',
    dateValue: ''
  },
  {
    type: 'input',
    inputPlaceholder: '请输入工厂货号',
    inputValue: ''
  },
  {
    type: 'input',
    inputLabel: '核算日期',
    inputDisabled: true,
    inputValue: '624'
  },
  {
    type: 'button',
    checkboxLabel: '置空',
    bgColor: '#1890FF'
  },
  {
    type: 'button',
    checkboxLabel: '清空'
  },
  {
    type: 'button',
    checkboxLabel: '导出'
  }
])
const findData = (data: any) => {
  console.log(data)
}
// 表格数据
const tableData = [
  {
    date: '20230427',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-02',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-04',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  }
]

const tableHeader = ref([
  {
    label: '订单号',
    prop: 'instruction'
  },
  {
    label: '品牌',
    prop: 'instruction'
  },
  {
    label: '工厂货号',
    prop: 'shape'
  },
  {
    label: '颜色',
    prop: 'shape'
  },
  {
    label: '季节',
    prop: 'shape'
  },
  {
    label: '楦头',
    prop: 'shape'
  },
  {
    label: '大底',
    prop: 'shape'
  },
  {
    label: '号码',
    prop: 'shape'
  },
  {
    label: '数量',
    prop: 'shape'
  },
  {
    label: '下单日期',
    prop: 'shape'
  },
  {
    label: '客户交期',
    prop: 'shape'
  }
])

// 表格数据
const tableData1 = [
  {
    customer: '张三',
    instruction: '李四',
    shape: '王五',
    j: '132',
    z: '666'
  }
]
const tableHeader1 = ref([
  {
    label: '版师',
    prop: 'customer'
  },
  {
    label: '备料员',
    prop: 'instruction'
  },
  {
    label: '开发员',
    prop: 'shape'
  },

  {
    Multistage: true,
    label: '纸板',
    children: [
      {
        label: '计划',
        prop: 'j'
      },
      {
        label: '实际',
        prop: 'z'
      }
    ]
  },
  {
    Multistage: true,
    label: '材料',
    children: [
      {
        label: '计划',
        prop: 'customer'
      },
      {
        label: '实际',
        prop: 'customer'
      }
    ]
  },
  {
    Multistage: true,
    label: '裁剪配套',
    children: [
      {
        label: '欠数',
        prop: 'shape'
      },
      {
        label: '计划',
        prop: 'shape'
      },
      {
        label: '实际',
        prop: 'shape'
      }
    ]
  },
  {
    Multistage: true,
    label: '工艺加工',
    children: [
      {
        label: '欠数',
        prop: 'shape'
      },
      {
        label: '计划',
        prop: 'shape'
      },
      {
        label: '实际',
        prop: 'shape'
      }
    ]
  },
  {
    Multistage: true,
    label: '大底',
    children: [
      {
        label: '欠数',
        prop: 'shape'
      },
      {
        label: '计划',
        prop: 'shape'
      },
      {
        label: '实际',
        prop: 'shape'
      }
    ]
  },
  {
    Multistage: true,
    label: '面衬',
    children: [
      {
        label: '欠数',
        prop: 'shape'
      },
      {
        label: '计划',
        prop: 'shape'
      },
      {
        label: '实际',
        prop: 'shape'
      }
    ]
  },
  {
    Multistage: true,
    label: '针车',
    children: [
      {
        label: '欠数',
        prop: 'shape'
      },
      {
        label: '计划',
        prop: 'shape'
      },
      {
        label: '实际',
        prop: 'shape'
      }
    ]
  },
  {
    Multistage: true,
    label: '成型',
    children: [
      {
        label: '欠数',
        prop: 'shape'
      },
      {
        label: '计划',
        prop: 'shape'
      },
      {
        label: '实际',
        prop: 'shape'
      }
    ]
  }
])
</script>

<style lang="less" scoped>
// 主体样式
.ProductionDynamicMain {
  width: 100%;
  margin-top: 20px;

  .ProductionDynamicMainCard {
    width: 100%;
    height: 100%;
    box-shadow: none;
  }
}

// 主体
.ProductionDynamicMainCardHeader {
  width: 98%;
  margin: auto;
  margin-top: 10px;
}

.ProductionDynamicMainCardMain {
  margin-top: 10px;
  margin: auto;
}

.ProductionDynamicMainCardBottom {
  display: flex;
  justify-content: space-between;
  margin: auto;
}

// H1字体
.ProductionDynamicMainCardHeaderH1 {
  font-size: 16px;
}

.ProductionDynamicMainCardHeaderDiv {
  width: 100%;
  height: 50px;
  display: flex;
  margin-top: 5px;
}

// Input 输入框的样式
.MainRightMainPoInput {
  width: 88px;
  height: 25px;
}

// 生产动态查询 样式
.ProductionDynamicMainCardMainTop {
  width: 100%;
  height: 40px;
  display: flex;

  .ProductionDynamicMainCardMainTopRight {
    width: 80%;
    height: 100%;
  }
}

.ProductionDynamicMainCardMainBottom {
  width: 100%;
  height: 92%;
  display: flex;

  .ProductionDynamicMainCardMainBottomLeft {
    width: 50%;
    height: 100%;
  }

  .ProductionDynamicMainCardMainBottomRight {
    width: 50%;
    height: 100%;
  }
}

// 时间线
.timeline {
  display: flex;
  margin-top: 15px;

  .timeline-dot {
    width: 70px;
    height: 1px;
    background: #e7e7e7;
    border-radius: 0px 0px 0px 0px;
    opacity: 1;
    margin-top: 10px;
  }
}

.timeline-dotTwo {
  width: 78px !important;
  margin-left: 42px;
}

.timeline-dotThree {
  width: 80px !important;
  margin-left: 2px;
}

.timelineRight {
  width: 70px !important;
}

.timeline-dotFore {
  width: 100px !important;
  margin-left: 7px;
}

.timeline-dotFive {
  width: 66px !important;
  margin-left: 5px;
}

:deep(.ProductionDynamicMainCardBottom .el-input__wrapper) {
  background-color: #fff5eb;
}

.save {
  color: black;
  border: 1px solid #e7e7e7;
  background: #e7e7e7;
}

.MainH1 {
  width: 115px;
}

.MainH {
  width: 60px;
}

.timeline-dotFor {
  width: 90px !important;
}
</style>
